package com.example.service;

import com.example.DTO.ArticleDTO;
import com.example.DTO.DetailDTO;
import com.example.DTO.SuggestionDTO;
import com.example.pojo.Article;
import com.example.pojo.PageBean;

import java.util.List;

public interface ArticleService {

    void add(Article article);
    //条件列表分页查询
    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    void delete(Integer id);

    DetailDTO detail(Integer id);

    void update(Article article);

    List<Article> blist();

    List<ArticleDTO> selectAll(Article article);

    List<Article> listByState(String state);

    void updateState(Article article);

    PageBean<ArticleDTO> listAll(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    List<SuggestionDTO> suggest(String keyword, Integer limit);

    void addViewCount(Integer id);
}

